package com.cskaoyan.mall.promo.service;

import com.cskaoyan.mall.promo.dto.*;

public interface PromoService {
     /**
      * 获取秒杀列表接口
      * @param request
      * @return
      */
     PromoInfoResponse getPromoList(PromoInfoRequest request);

     /**
      * 秒杀下单接口
      * @param request
      * @return
      */
     CreatePromoOrderResponse createPromoOrder(CreatePromoOrderRequest request);

     /**
      * 使用分布式事务控制的秒杀下单接口
      * @param request
      * @return
      */
     CreatePromoOrderResponse createPromoOrderInTransaction(CreatePromoOrderRequest request)throws Exception;

     /**
      * 获取秒杀商品详情
      * @param request
      * @return
      */
    PromoProductDetailResponse getPromoProductDetail(PromoProductDetailRequest request);
}